package g11.dao;

import g11.model.Drug;
import g11.model.Prescription;
import g11.model.VisitationContent;

import java.util.List;

public interface PrescriptionDAO {
	public void createPrescription(Prescription prescription)
			throws DAOException;

	public void createPrescription(VisitationContent visitationContent,
			Drug drug, String dosage) throws DAOException;

	// It can only update dosage
	public void updatePrescription(Prescription prescription)
			throws DAOException;

	public void deletePrescription(Prescription prescription)
			throws DAOException;

	public List<Prescription> getPrescriptionByVisitationContent(
			VisitationContent visitationContent) throws DAOException;

	public Prescription getPrescriptionByVisitationContentAndDrug(
			VisitationContent visitationContent, Drug drug) throws DAOException;

}
